<?php
/*
	http://svn.digitalsentience.com/svn/armory/
	
	Copyright (c) 2007, Chris Heald. All rights reserved.
*/

$cache_db_host = "localhost";
$cache_db_db = "armory";
$cache_db_user = "armory";
$cache_db_pass = "armory";

$_ARMORY_CACHE_DB = false;

function getDBCacheConnection() {
	global $cache_db_host, $cache_db_db, $cache_db_user, $cache_db_pass;
	global $_ARMORY_CACHE_DB;
	if($_ARMORY_CACHE_DB) return $_ARMORY_CACHE_DB;
	$_ARMORY_CACHE_DB = mysql_pconnect($cache_db_host, $cache_db_user, $cache_db_pass);
	mysql_select_db($cache_db_db);
	echo mysql_error();
	return $_ARMORY_CACHE_DB;
}

?>
